package cn.neusoft.feignClients;

import cn.neusoft.feignClients.fallback.CommodityFeignClientFallback;
import cn.neusoft.interceptor.FeignInterceptor;
import cn.neusoft.vo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "allocation-server",fallback = CommodityFeignClientFallback.class, configuration = FeignInterceptor.class)
public interface CommodityFeignClient {
    @GetMapping("/commodity/get/{id}")    // Get + /stu/1
    ResultBean getById(@PathVariable("id") String id);
}
